<?php
require_once 'includes/functions.php';

// 获取主机名
$host = $_SERVER['HTTP_HOST'] ?? '';

// 检查是否是主域名访问
if ($host === 'jl25.net' || $host === 'www.jl25.net') {
    // 加载主站点
    include 'main_site.php';
} else {
    // 处理子域名访问
    include 'subdomain_handler.php';
}
